package com.lbj.core.widget.square

import android.content.Context
import android.util.AttributeSet
import androidx.cardview.widget.CardView

/**
 * 作者：李炳军
 * 创建日期：2021-03-31  10:45
 * 释义：正方形的CardView
 */
class SquareCardView @JvmOverloads constructor(
    context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
) : CardView(context, attrs, defStyleAttr) {

    override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
        super.onMeasure(widthMeasureSpec, widthMeasureSpec)
    }
}